home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
programming
/
ace_basic
/
ace24.lha
/
prgs
/
ExternFunc
/
func.b
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-09-11
|
299 b
|
19 lines
{*
** A test of external function use.
** sub.c (compiled and assembled to produce sub.o)
** is used in conjunction with this:
**
** bas -O func sub.o
*}
deflng x,y,z
declare function subtract(x&,y&,z&) external
input "enter x: ",x
input "enter y: ",y
z=0
subtract(x,y,@z)
print x;"-";y;"=";z